package com.lswms.modules.lswms.service.orders;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.lswms.common.page.PageData;
import com.lswms.common.service.CrudService;
import com.lswms.modules.lswms.dto.orders.OrderdetaillistDTO;
import com.lswms.modules.lswms.entity.orders.OrderdetaillistEntity;
import com.lswms.modules.lswms.entity.task.TaskEntity;
import org.apache.ibatis.annotations.Param;

/**
 * 出库明细记录
 *
 * @author DX sunlightcs@gmail.com
 * @since 1.0.0 2021-06-24
 */
public interface OrderdetaillistService extends CrudService<OrderdetaillistEntity, OrderdetaillistDTO> {

	String saveAllocationByHandle(OrderdetaillistDTO dto);
	
	void changeOrderStatus(String orderkey)  ;
	
	Integer getOrderdetaillistMaxLine(String orderkey, Integer line);

	List<OrderdetaillistEntity> getByTray(String tray);

	String savePicklist(List<OrderdetaillistEntity> list);

	String backToStereo(String tray);

	PageData<OrderdetaillistEntity> pageBySql(Map<String, Object> params);

	String deletePick(Long[] ids);

	String updatePick(OrderdetaillistDTO dto);

	PageData<OrderdetaillistEntity> pageListBySql(Map<String, Object> params);

	List<OrderdetaillistEntity> listBySql(Map<String, Object> params);

	//Integer getTaskTaryCount(@Param(Constants.WRAPPER)QueryWrapper<TaskEntity> wrapper);

}